package kingiis.utils.simpleapp.utils;

import android.app.Activity;
import android.view.WindowManager;

/**
 * Created by King on 2018/2/22.
 */

public class Window {
    public static void backgroundAlpha(Activity activity, float bgAlpha) {
        WindowManager.LayoutParams lp = activity.getWindow().getAttributes();
        lp.alpha = bgAlpha; //0.0-1.0
        activity.getWindow().setAttributes(lp);
    }

}
